Repository navigation
fix(deps): move to @doist/mcp-core 0.4.0, and run its shared suites - #86
Merged
Merged
Conversation
mcp-core 0.4.0 ships describeToolAnnotations and describeTokenFootprint, generalised from this repo's own tests, so both now call them: - tool-annotations.test.ts keeps every tool's expected title and hints, now keyed by tool name, and checks them as a client receives them on tools/list rather than off a registerTool spy. - token-footprint.test.ts keeps its 13,250 budget and the MCP_TOKEN_BUDGET override; the measurement is unchanged (13,031). The write-tests rules cited the old annotations test as a guard example; the other example in that row stays.
doistbot
reviewed
Nov 9, 2026
doistbot
left a comment
Member
There was a problem hiding this comment.
This PR updates fix(deps): move to @doist/mcp-core 0.4.0, and run its shared suites. No issues were flagged in the reviewed diff.
doist-release-bot Bot
added a commit
that referenced
this pull request
Nov 9, 2026
## [10.0.2](v10.0.1...v10.0.2) (2026-11-09) ### Bug Fixes * **deps:** move to @doist/mcp-core 0.4.0, and run its shared suites ([#86](#86)) ([430db3c](430db3c))
|
🎉 This PR is included in version 10.0.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
@doist/mcp-core0.4.0 ships two suites generalised from this repo's own tests (todoist/mcp-core#7). Both test files now call them:src/tools/tool-annotations.test.ts→describeToolAnnotations. The 22 tools' expected titles and hints are unchanged, now keyed byToolNames. They're checked as a client receives them ontools/list, with exact equality and theopenWorldHint: falsedefault included. The old test read them off aMcpServer.prototype.registerToolspy, matching only partially. It also fails if a tool is advertised without an expectation, or expected but not advertised.src/token-footprint.test.ts→describeTokenFootprint. It keeps the 13,250 budget and theMCP_TOKEN_BUDGEToverride thatnpm run verifystrips. The measurement is unchanged: 13,031 tokens (11,553 for the tool list, 1,478 for the instructions)..agents/skills/write-tests/references/test-rules.mdcited line 198 of the old annotations test as an example of atoBeDefined()guard. That line is gone, and the row's other example (src/tools/get-mentions.test.ts:54) stays.The mcp-core bump also moves from 0.3.0 to 0.4.0. The rest of 0.4.0 (the host helpers from todoist/mcp-core#8) isn't used here.
fix(deps):so it releases and todoist-ai-integrations gets a single copy of mcp-core.Verification
npm run verifypasses. The annotations suite runs 23 tests, one per tool plus the coverage check.MCP_TOKEN_BUDGET=1, the footprint suite fails and prints the same 13,031 tokens the old test measured.